<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>header</title>
    <link rel="stylesheet" href="css/element.css">
    <script src="js/bootstrap.min.js"></script>
    <script src="js/vue.min.js"></script>
    <script src="js/element.js"></script>
    <script src="js/echarts.min.js"></script>
</head>
<body>
<div id="box">
    <el-col :span="24">
<!--        bootstrap部分-->
        <div class="media">
            <div class="media-left media-middle" style="float: left">
                <a href="#">
                    <img class="media-object" src="img/avatar-6.jpg" width="50" height="50" style="border-radius: 50%" onclick="change()">
                </a>
            </div>
            <div class="media-body">
                <small class="media-heading" style="margin-left: 15px">小程</small>
                <br>
                <small class="media-heading" style="margin-left: 15px">研发部</small>
            </div>
        </div>
        <br>

        <el-menu
                default-active="2"
                class="el-menu-vertical-demo"
                @open="handleOpen"
                @close="handleClose">

<!--            设置固定主页面蓝色-->
            <el-menu-item index="2">
                <i class="el-icon-user"></i>
                <span slot="title">
                    <el-link type="primary" href="home.html" target="_parent">首页</el-link>
                </span>
            </el-menu-item>

<!--            用户列表-->
            <el-submenu index="1">
                <template slot="title">
                    <i class="el-icon-user-solid"></i>
                    <span>用户列表</span>
                </template>
                <el-menu-item-group>

                    <el-link :underline="false" index="1-1" href="user.html" target="content">
                        <el-menu-item index="1-1">
                                <span style="font-weight: normal;">查看用户</span>
                        </el-menu-item>
                    </el-link>

                    <el-link :underline="false" index="1-2" href="my_user.html" target="content">
                        <el-menu-item index="1-2">
                                <span style="font-weight: normal;">我关注的用户</span>
                        </el-menu-item>
                    </el-link>


                    <el-link :underline="false" index="1-3" href="article.html" target="content">
                        <el-menu-item index="1-3">
                                <span style="font-weight: normal;">发布文章</span>
                        </el-menu-item>
                    </el-link>


                    <el-link :underline="false" index="1-4" href="article_collect.html" target="content">
                        <el-menu-item index="1-4">
                                <span style="font-weight: normal;">我的收藏</span>
                        </el-menu-item>
                    </el-link>

                </el-menu-item-group>
            </el-submenu>

<!--            部门列表-->
            <el-submenu index="3">
                <template slot="title">
                    <i class="el-icon-s-data"></i>
                    <span>部门列表</span>
                </template>
                <el-menu-item-group>


                    <el-link :underline="false" index="1-5" href="department.html" target="content">
                        <el-menu-item index="1-5">
                            <span style="font-weight: normal;">全部部门</span>
                        </el-menu-item>
                    </el-link>

                    <el-link :underline="false" index="1-6" href="meeting.html" target="content">
                        <el-menu-item index="1-6">
                            <span style="font-weight: normal;">会议系统</span>
                        </el-menu-item>
                    </el-link>


                </el-menu-item-group>
            </el-submenu>
        </el-menu>
    </el-col>
</div>

<script>
    new Vue({
        el: "#box",
        data: {},
        methods: {
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    })
</script>
<script>
    function change() {
        window.open("uesr_look.html", "content");
    }
</script>
</body>
</html>